package com.globalwave.rule.engine;

import java.util.HashMap;
import java.util.Map;

public class WorkingMemory {

	Map<String, Object> context = new HashMap<String, Object>();
	public void insert(Object object) {
		context.put(object.getClass().getSimpleName(), object) ;
	}
	
	public void fireAllRules() throws Exception {
		RuleTree tree = new RuleTree() ;
		tree.build(10000+"") ;
		tree.trigger(context) ;
		//tree.handleResult(context) ;
	}
}
